package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
* <p>
* 核销锁账表
* </p>
*
* @author huangrensen
* @since 2023-08-25
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysBillLock extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 电商平台店铺编码
    */
    private String commercePlatformStoreCode;

    /**
    * 初始日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime billDateStart;

    /**
    * 关账日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate billDateEnd;

    /**
    * 是否需要核销
    */
    private String auditType;

    /**
     * 是否需要核销字典名称
     */
    @TableField(exist = false)
    private String auditTypeName;

    /**
     * 电商平台店铺名称
     */
    @TableField(exist = false)
    private String commercePlatformStoreName;
}
